﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace GxTsSharp.Models
{
    [StructLayout(LayoutKind.Sequential)]
    public class StockQuote
    {
        public EMarketID MarketId;


        /// <summary>
        /// 编号
        /// </summary>
        public ushort No;

        /// <summary>
        /// 变化序列号
        /// </summary>
        public ushort SerialNo;

        /// <summary>
        /// 现在时间
        /// </summary>
        public uint Time;


        /// <summary>
        /// 最新价
        /// </summary>
        public float NewPrice;

        /// <summary>
        /// 现手
        /// </summary>
        public float Current;

        /// <summary>
        /// 成交量(单位:股)
        /// </summary>
        public float Total;

        /// <summary>
        /// 成交金额(单位:元)
        /// </summary>
        public float Money;

        /// <summary>
        /// 主买总量
        /// </summary>
        public float BuyTotal;

        /// <summary>
        /// 涨停价格
        /// </summary>
        public float ZTPrice;

        /// <summary>
        /// 跌停价格
        /// </summary>
        public float DTPrice;

        /// <summary>
        /// 昨收价
        /// </summary>
        public float PrevClose;

        /// <summary>
        /// 今开盘
        /// </summary>
        public float OpenPrice;

        /// <summary>
        /// 最高价
        /// </summary>
        public float MaxPrice;

        /// <summary>
        /// 最低价
        /// </summary>
        public float MinPrice;

        /// <summary>
        /// 分钟涨幅
        /// </summary>
        public float MinuteRise1;

        /// <summary>
        /// 分钟涨幅
        /// </summary>
        public float MinuteRise3;

        /// <summary>
        /// 分钟涨幅
        /// </summary>
        public float MinuteRise5;



        public float BuyPrice1;
        public float BuyPrice2;
        public float BuyPrice3;
        public float BuyPrice4;
        public float BuyPrice5;

        public float BuyCount1;
        public float BuyCount2;
        public float BuyCount3;
        public float BuyCount4;
        public float BuyCount5;

        public float SellPrice1;
        public float SellPrice2;
        public float SellPrice3;
        public float SellPrice4;
        public float SellPrice5;

        public float SellCount1;
        public float SellCount2;
        public float SellCount3;
        public float SellCount4;
        public float SellCount5;
    }
}
